package com.yuedou.api.entity.wxuser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "user_transaction")
public class UserTransaction implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private Integer transType;

    private BigDecimal price;

    private String dealType;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer state;

    private Integer inOrOut;

    private Integer shopId;

    @TableField(exist = false)
    private String nicknameNormal;

    @TableField(exist = false)
    private String shopName;

    @TableField(exist = false)
    private String normalFaceUrl;

    @TableField(exist = false)
    private String shopLogo;
}
